projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
274fa19
)
(_sys_wait_accept): Fix handle leak.
author
Kim F. Storm
<storm@cua.dk>
Thu, 21 Dec 2006 12:47:06 +0000
(12:47 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Thu, 21 Dec 2006 12:47:06 +0000
(12:47 +0000)
src/w32.c
patch
|
blob
|
history
diff --git
a/src/w32.c
b/src/w32.c
index cbc78f8a5d5c1d117f465e03f206b3638f3f18b4..10d64212058e6c6cefde38b4e85e165b9614f315 100644
(file)
--- a/
src/w32.c
+++ b/
src/w32.c
@@
-3698,10
+3698,10
@@
int _sys_wait_accept (int fd)
{
rc = WaitForSingleObject (hEv, INFINITE);
pfn_WSAEventSelect (SOCK_HANDLE (fd), NULL, 0);
- pfn_WSACloseEvent (hEv);
if (rc == WAIT_OBJECT_0)
cp->status = STATUS_READ_SUCCEEDED;
}
+ pfn_WSACloseEvent (hEv);
return cp->status;
}
@@
-4127,7
+4127,7
@@
BOOL WINAPI shutdown_handler(DWORD type)
shut_down_emacs (0, 0, Qnil);
}
- /* Allow other handlers to handle this signal. */
+ /* Allow other handlers to handle this signal. */
return FALSE;
}